using Google.ProtocolBuffers;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SKBuiltinFloat32_t : GeneratedMessageLite<SKBuiltinFloat32_t, SKBuiltinFloat32_t.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SKBuiltinFloat32_t, SKBuiltinFloat32_t.Builder>
		{
			private bool resultIsReadOnly;
			private SKBuiltinFloat32_t result;
			protected override SKBuiltinFloat32_t.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SKBuiltinFloat32_t MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SKBuiltinFloat32_t DefaultInstanceForType
			{
				get
				{
					return SKBuiltinFloat32_t.DefaultInstance;
				}
			}
			public float FVal
			{
				get
				{
					return this.result.FVal;
				}
				set
				{
					this.SetFVal(value);
				}
			}
			public Builder()
			{
				this.result = SKBuiltinFloat32_t.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SKBuiltinFloat32_t cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SKBuiltinFloat32_t PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SKBuiltinFloat32_t other = this.result;
					this.result = new SKBuiltinFloat32_t();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SKBuiltinFloat32_t.Builder Clear()
			{
				this.result = SKBuiltinFloat32_t.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SKBuiltinFloat32_t.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SKBuiltinFloat32_t.Builder(this.result);
				}
				return new SKBuiltinFloat32_t.Builder().MergeFrom(this.result);
			}
			public override SKBuiltinFloat32_t BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SKBuiltinFloat32_t.Builder MergeFrom(IMessageLite other)
			{
				if (other is SKBuiltinFloat32_t)
				{
					return this.MergeFrom((SKBuiltinFloat32_t)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SKBuiltinFloat32_t.Builder MergeFrom(SKBuiltinFloat32_t other)
			{
				return this;
			}
			public override SKBuiltinFloat32_t.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SKBuiltinFloat32_t.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SKBuiltinFloat32_t._sKBuiltinFloat32TFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SKBuiltinFloat32_t._sKBuiltinFloat32TFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 13u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasFVal = input.ReadFloat(ref this.result.fVal_);
					}
				}
				return this;
			}
			public SKBuiltinFloat32_t.Builder SetFVal(float value)
			{
				this.PrepareBuilder();
				this.result.hasFVal = true;
				this.result.fVal_ = value;
				return this;
			}
			public SKBuiltinFloat32_t.Builder ClearFVal()
			{
				this.PrepareBuilder();
				this.result.hasFVal = false;
				this.result.fVal_ = 0f;
				return this;
			}
		}
		public const int FValFieldNumber = 1;
		private static readonly SKBuiltinFloat32_t defaultInstance;
		private static readonly string[] _sKBuiltinFloat32TFieldNames;
		private static readonly uint[] _sKBuiltinFloat32TFieldTags;
		private bool hasFVal;
		private float fVal_;
		private int memoizedSerializedSize = -1;
		public static SKBuiltinFloat32_t DefaultInstance
		{
			get
			{
				return SKBuiltinFloat32_t.defaultInstance;
			}
		}
		public override SKBuiltinFloat32_t DefaultInstanceForType
		{
			get
			{
				return SKBuiltinFloat32_t.DefaultInstance;
			}
		}
		protected override SKBuiltinFloat32_t ThisMessage
		{
			get
			{
				return this;
			}
		}
		public float FVal
		{
			get
			{
				return this.fVal_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasFVal;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFVal)
				{
					num += CodedOutputStream.ComputeFloatSize(1, this.FVal);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SKBuiltinFloat32_t()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sKBuiltinFloat32TFieldNames = SKBuiltinFloat32_t._sKBuiltinFloat32TFieldNames;
			if (this.hasFVal)
			{
				output.WriteFloat(1, sKBuiltinFloat32TFieldNames[0], this.FVal);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFVal)
			{
				num ^= this.fVal_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SKBuiltinFloat32_t sKBuiltinFloat32_t = value as SKBuiltinFloat32_t;
			return sKBuiltinFloat32_t != null && (this.hasFVal == sKBuiltinFloat32_t.hasFVal && (!this.hasFVal || this.fVal_.Equals(sKBuiltinFloat32_t.fVal_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SKBuiltinFloat32_t, SKBuiltinFloat32_t.Builder>.PrintField("fVal", this.hasFVal, this.fVal_, writer);
		}
		public static SKBuiltinFloat32_t ParseFrom(byte[] data)
		{
			return SKBuiltinFloat32_t.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SKBuiltinFloat32_t MakeReadOnly()
		{
			return this;
		}
		public static SKBuiltinFloat32_t.Builder CreateBuilder()
		{
			return new SKBuiltinFloat32_t.Builder();
		}
		public override SKBuiltinFloat32_t.Builder ToBuilder()
		{
			return SKBuiltinFloat32_t.CreateBuilder(this);
		}
		public override SKBuiltinFloat32_t.Builder CreateBuilderForType()
		{
			return new SKBuiltinFloat32_t.Builder();
		}
		public static SKBuiltinFloat32_t.Builder CreateBuilder(SKBuiltinFloat32_t prototype)
		{
			return new SKBuiltinFloat32_t.Builder(prototype);
		}
		static SKBuiltinFloat32_t()
		{
			SKBuiltinFloat32_t.defaultInstance = new SKBuiltinFloat32_t().MakeReadOnly();
			SKBuiltinFloat32_t._sKBuiltinFloat32TFieldNames = new string[]
			{
				"fVal"
			};
			SKBuiltinFloat32_t._sKBuiltinFloat32TFieldTags = new uint[]
			{
				13u
			};
			object.ReferenceEquals(SKBuiltinFloat32T.Descriptor, null);
		}
	}
}
